package com.love.marriage.userMembershipInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.common.interfaces.permission.DataPermission;
import com.love.marriage.userMembershipInfo.entity.UserMembershipInfo;
import com.love.marriage.userMembershipInfo.vo.UserMembershipInfoPageVo;
import com.love.marriage.userMembershipInfo.vo.UserMembershipInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  用户会员表 mapper
 * author:       mybatisPlus
 * createDate:   2024-10-17 07:29:59
 * version:      1.0.0
 */
@Mapper
public interface UserMembershipInfoMapper extends BaseMapper<UserMembershipInfo> {

    @DataPermission(table = "user_membership_info_t")
    Page<UserMembershipInfoPageVo> getPage(Page<UserMembershipInfoVo> page, @Param("userMembershipInfoVo") UserMembershipInfoVo userMembershipInfoVo);

    List<UserMembershipInfoPageVo> getList(@Param("userMembershipInfoVo") UserMembershipInfoVo userMembershipInfoVo);

    UserMembershipInfoVo queryUserMembershipInfo(@Param("id") Long id);

    UserMembershipInfoVo queryUserMembershipInfoByUserId(@Param("userId") Long userId);
}
